<?php /* Smarty version 2.6.18, created on 2012-02-20 11:30:19
         compiled from index/box-register.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'index/box-register.tpl', 8, false),array('function', 'html_options', 'index/box-register.tpl', 31, false),array('function', 'captcha', 'index/box-register.tpl', 77, false),)), $this); ?>
<div id="signupForm" <?php if (isset ( $_GET['err'] ) && $_GET['err'] > 0): ?>style="display:block;"<?php endif; ?>>
    <div class="signupForm"></div>
    <div class="boxRegister" <?php if (isset ( $_GET['err'] ) && $_GET['err'] > 0): ?>style="display:block;"<?php endif; ?>>
        <div class="registerItem">
            <form method="post" id="frmRegister" name="frmRegister" action="<?php echo @HOST_VFRIEND; ?>
index/save" enctype="multipart/form-data">        	
                <div class="userInput">
                    <label for="pfirstname" class="text">Họ:</label>
                    <input type="text" id="pfirstname" name="pfirstname" class="text" value="<?php if (isset ( $_SESSION['uinfo']['pfirstname'] )): ?><?php echo ((is_array($_tmp=$_SESSION['uinfo']['pfirstname'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php endif; ?>"/>
                </div>
                <div class="userInput">
                    <label for="plastname" class="text">Chữ lót &amp; Tên:</label>
                   <input type="text" id="plastname" name="plastname" class="text" value="<?php if (isset ( $_SESSION['uinfo']['plastname'] )): ?><?php echo ((is_array($_tmp=$_SESSION['uinfo']['plastname'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php endif; ?>"/>
                </div>
                <div class="userInput">
                    <label for="pemail" class="text">Địa chỉ Email:</label>
                    <input type="text" id="pemail" name="pemail" class="text" value="<?php if (isset ( $_SESSION['uinfo']['pemail'] )): ?><?php echo ((is_array($_tmp=$_SESSION['uinfo']['pemail'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php endif; ?>"/>
                </div>
                <div class="userInput">
                    <label for="ppassword" class="text">Mật khẩu:</label>
                    <input type="password" id="ppassword" name="ppassword" class="text"/>
                </div>
                <div class="userInput">
                    <label for="ppassword_confirm" class="text">Xác nhận mật khẩu:</label>
                    <input type="password" id="ppassword_confirm" name="ppassword_confirm" class="text"/>
                </div>
                <div class="userInput">
                    <label for="pgender" class="text">Giới tính:</label>  
                    <select id="pgender" name="pgender" class="select" title="Chọn">
                        <option value="">Chọn</option>
                        <?php if (isset ( $_SESSION['uinfo']['pgender'] )): ?>
                        	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrGender'],'selected' => $_SESSION['uinfo']['pgender']), $this);?>

                        <?php else: ?>
                        	<?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrGender']), $this);?>

                        <?php endif; ?>
                    </select>
                   
                </div>
                <div class="userInput">
                    <label for="pyear" class="text">Ngày sinh:</label>
                    <div class="year">
                        <select id="pyear" name="pyear" class="select" title="Năm">
                            <option value="">Năm</option>
                            <?php if ($_SESSION['uinfo']['pyear']): ?>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrYear'],'selected' => $_SESSION['uinfo']['pyear']), $this);?>

                            <?php else: ?>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrYear']), $this);?>

                            <?php endif; ?>
                        </select>
                    </div>
                    <div class="month">
                        <select id="pmonth" name="pmonth" class="select" title="Tháng">
                            <option value="">Tháng</option>
                            <?php if (isset ( $_SESSION['uinfo']['pmonth'] )): ?>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrMonth'],'selected' => $_SESSION['uinfo']['pmonth']), $this);?>

                            <?php else: ?>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrMonth']), $this);?>

                            <?php endif; ?>
                        </select>   
                    </div>                
                    <div class="day">
                        <select id="pday" name="pday" class="select" title="Ngày">
                            <option value="">Ngày</option>
                            <?php if (isset ( $_SESSION['uinfo']['pday'] )): ?>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrDay'],'selected' => $_SESSION['uinfo']['pday']), $this);?>

                            <?php else: ?>
                                <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['arrDay']), $this);?>

                            <?php endif; ?>
                        </select>  
                    </div>               
                </div>                
                <div class="userInput">
                    <label for="pcaptcha" class="text">Mã an ninh:</label>
                    <input type="text" id="pcaptcha" name="pcaptcha" class="text half" />
                </div>
                <div class="userInput">
                    <div class="imgCaptcha" id="imgCaptcha">
                        <?php echo smarty_function_captcha(array(), $this);?>

                    </div>
                    <div class="imgRefresh"><a href="javascript:refreshCaptcha('imgCaptcha');"><img src="<?php echo @HOST_STATICS; ?>
img/btn/refresh.png" width="32" height="41" alt="" border="0"  /></a></div>
                </div>
                <div class="userInput">
                    <label class="tos">
                        <p>Khi nhấn vào đăng ký bạn đã đồng ý với điều khoản sử dụng website của chúng tôi.</p>
                    </label>
                </div>
                <div class="userInput">
                    <div class="errorMessage" <?php if (isset ( $_GET['err'] )): ?>style="display:block;"<?php else: ?>style="display:none"<?php endif; ?>>&nbsp;</div>
                    <input type="image" src="<?php echo @HOST_STATICS; ?>
img/btn/sign-up-submit.png" class="btn" />
                </div>
            </form>
        </div>
    </div>
</div>